package com.liuxing.doctor.mapper;

import com.liuxing.doctor.entity.Doctor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface DoctorMapper {
    int deleteByPrimaryKey(String doctorId);

    int insert(Doctor record);

    int insertSelective(Doctor record);

    Doctor selectByPrimaryKey(String doctorId);

    int updateByPrimaryKeySelective(Doctor record);

    int updateByPrimaryKey(Doctor record);

    /**
     * 查询id和密码
     * @param map
     * @return
     */
    Doctor selectByIdAndPwd(Map<String,Object> map);

    /**
     *更新密码
     * @param map
     * @return
     */
    int updateDoctorLoginPasswd(Map<String,Object> map);

    List<Doctor> selectAll();

}